[LIBXC][POWERPC] use O_CREAT on open call for DTB_FILE
authorJimi Xenidis <jimix@watson.ibm.com>
Thu, 8 Feb 2007 11:46:13 +0000 (06:46 -0500)
committerJimi Xenidis <jimix@watson.ibm.com>
Thu, 8 Feb 2007 11:46:13 +0000 (06:46 -0500)
commitab859852c31d8163496eb93fc5366930f076cf92
treec7555913e3d1e424aa7d240c95eeebbdbe04d69e
parent108dcfd0b8387d6989650d8bd4c895e34828f7f0
[LIBXC][POWERPC] use O_CREAT on open call for  DTB_FILE
This fixes a bug in the creating of the flat dev tree. If open is used
and O_CREAT not is specified, it will fail if the file has not already
been created. This patch will create the file if it does not exist
already. Which will allow for DomU creation.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : Q%CA%40%88N%D8%25%B0%D7%FD%F8%1A%1E%07%8E2E%1BM%22
tools/libxc/powerpc64/mk_flatdevtree.c